package text111;

import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;

public class Solution13 {
	public TreeNode mirrorTree(TreeNode root) {
		 if(root == null) return null;
		 
	        TreeNode tmp = root.left;
	        root.left = root.right;
	        root.right = tmp;
	      
	        root.left = mirrorTree(root.left);
	        root.right = mirrorTree(root.right);
	      //  root.right = mirrorTree(tmp);
	        return root;
	}
}
